home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 2010 April / PCWorld0410.iso / pluginy Firefox / 138 / 138.xpi / chrome / stumbleupon.jar / content / positionDialog.xul < prev    next >
Extensible Markup Language  |  2009-12-20  |  2KB  |  67 lines

  1. <?xml version="1.0"?>
  2.  
  3. <?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
  4.  
  5. <window id="stumble_position_dialog" title="StumbleUpon Toolbar Position"
  6.   xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
  7.   onload="init();"
  8.     onunload="handle_window_unload();"
  9.     style="background-color:white;">
  10.  
  11. <script type="application/x-javascript">
  12. <![CDATA[
  13.  
  14. var detail;
  15.  
  16. function init()
  17. {
  18.     detail = window.arguments[0];
  19.     
  20.     detail.result = "cancel-error";
  21.  
  22.     setTimeout(resize, 10);
  23. }
  24.  
  25. function resize()
  26. {
  27.     window.sizeToContent();
  28. }
  29.  
  30. function handle_button_click(value)
  31. {
  32.     detail.result = value;
  33.     setTimeout(close, 0);
  34. }
  35.  
  36. function handle_window_unload()
  37. {
  38.     opener.setTimeout(function (parent, detail) { parent.su_handle_position_dialog_close(detail); }, 0, opener, detail);
  39. }
  40.  
  41. ]]>
  42. </script>
  43. <spacer height="10px" style="background-color: white;"/>
  44. <image id="prompt" src="chrome://stumbleupon/content/skin/position_move_it.gif" />
  45. <spacer height="10px" style="background-color: white;"/>
  46. <hbox style="background-color: white;">
  47.     <spacer width="255px"/>
  48.     <image id="button-yes"
  49.         style="cursor:pointer;"
  50.         src="chrome://stumbleupon/content/skin/btn_position_move_it.gif"
  51.         onclick="handle_button_click('yes');"/>
  52.     <spacer flex="1"/>
  53.     <vbox>
  54.         <spacer flex="1"/>
  55.         <label id="button-no"
  56.             value="No thanks"
  57.             style="color:rgb(84,164,222);cursor:pointer;"
  58.             onclick="handle_button_click('no');"/>
  59.         <spacer flex="1"/>
  60.     </vbox>
  61.     <spacer width="15px"/>
  62. </hbox>
  63. <spacer 
  64.     style="background-color:white;"
  65.     height="20px"/>
  66. </window>
  67.